/**
 *  服务器上传地址
 */

export const uploadUrl = 'http://127.0.0.1:8080/common/upload';

export const fileView = (filename: string) => {
    if(!filename) return null;
    if (filename.startsWith('http')) {
        return filename;
    }
    return `http://127.0.0.1:8080/common/upload/${filename}`;
};
